package API.Collections;

import java.util.ArrayList;
import java.util.Collections;

public class fill {
    public static void main(String[] args) {
        ArrayList<Integer> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            list.add(i);
        }
        Collections.fill(list, 1);
        for(int i : list) {
            System.out.print(i + " ");
        }
    }
}
